#pragma once

class CWnd;
#include <vector>
using namespace std;


const static int LAYOUT_INDEX = 0;
const static int RENDER_INDEX = 1;
class CPanelManager
{
public:
	CPanelManager(CWnd* parentWnd);
public:
	~CPanelManager(void);
public:
	void addPanel(CDialog* panel, UINT id);
	void showPanel(int index);
	int getPanelIndex()const;
	CDialog* getActivePanel()const;
	void init();
	void SetRect();
	CWnd* getParentWnd()const
	{
		return _parent;
	}
protected:
	vector< CDialog* > _panels;
	vector< UINT > _ids;
	CWnd* _parent;
	int _curPanel;
};
